package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.DoctorReserveDetailTask.DoctorReserveDetailRequest;
import com.smiier.skin.net.DoctorReserveDetailTask.DoctorReserveDetailResponse;
import com.smiier.skin.util.GlobalSettings;

/*
 * 我的预约项目详细信息
 */
public class DoctorReserveDetailTask extends
		NetTask<DoctorReserveDetailRequest, DoctorReserveDetailResponse> {
	public static class DoctorReserveDetailRequest extends ORequest {
		public int reserveid;
	}

	public static class DoctorReserveDetailResponse extends
			ArrayList<DoctorReserveDetail> implements INoProguard {
	}

	public static class DoctorReserveDetail implements INoProguard {
		public int id;
		public String hospital;
		public String name;
		public String status;
		public int discount_price;
		public String reserve_no;
		public String url;
		public JsonDate ctime;
		public int doctor_id;
		public JsonDate booktime;
		public String is_afternoon;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/DoctorReserve/reserveInfo";
		mRequestMethod = METHOD_POST;
	}

}
